import java.sql.SQLOutput;
import java.util.Scanner;

public class LiXi {
    public static void main(String[] args) {
        int num1, num2;
        float c;
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入第一个数");
        num1=scanner.nextInt();
        System.out.println("输入第二个数");
        num2=scanner.nextInt();
        System.out.println("交换之前");
        System.out.println("num1=" + num1);
        System.out.println("num2=" + num2);
        num1=num1+num2;
        num2=num1-num2;
        num1=num1-num2;
        System.out.println("交换之后");
        System.out.println("num1=" + num1);
        System.out.println("num2=" + num2);
        c=(float) num1/num2;
        System.out.println("两个数相除的结果是："+c);

    }
}

